//
//  MBProgressHUD+Additions.h
//  YunXueBao
//
//  Created by 和系 on 2018/1/15.
//  Copyright © 2018年 hexi. All rights reserved.
//

#import "MBProgressHUD.h"
/**  < 最小显示时间 >  */
UIKIT_EXTERN NSTimeInterval const kMinShowTime;
/**  < 显示几秒后消失 >  */
UIKIT_EXTERN NSTimeInterval const KHideAfterDelayTime;
/**  < 菊花最少显示时间 >  */
UIKIT_EXTERN NSTimeInterval const kActivityMinDismissTime;
@interface MBProgressHUD (Additions)
#pragma mark --------  基础方法  --------
#pragma mark
/**
 *  快速创建提示框 有菊花
 *
 *  @param message 提示信息
 *  @param view 显示视图
 *  @return hud
 */
+ (MBProgressHUD *)showActivityMessage:(NSString *)message
                                toView:(UIView *)view;

/**
 显示提示文字
 
 @param message 提示信息
 @param view 显示视图
 */
+ (void)showMessage:(NSString *)message
             toView:(UIView *)view
         completion:(MBProgressHUDCompletionBlock)completion;
/**
 *  自定义成功提示
 *
 *  @param success 提示文字
 *  @param view 显示视图
 */
+ (void)showSuccess:(NSString *)success
             toView:(UIView *)view
         completion:(MBProgressHUDCompletionBlock)completion;
/**
 *  自定义失败提示
 *
 *  @param error 提示文字
 *  @param view 显示视图
 */
+ (void)showError:(NSString *)error
           toView:(UIView *)view
       completion:(MBProgressHUDCompletionBlock)completion;
/**
 *  自定义提示信息
 *
 *  @param info 提示信息
 *  @param view 示视图
 */
+ (void)showInfo:(NSString *)info
          toView:(UIView *)view
      completion:(MBProgressHUDCompletionBlock)completion;

/**
 *  自定义警告提示
 *
 *  @param warning 提示信息
 *  @param view 示视图
 */
+ (void)showWarning:(NSString *)warning
             toView:(UIView *)view
         completion:(MBProgressHUDCompletionBlock)completion;

/**
 *  自定义提示框
 *
 *  @param text 提示文字
 *  @param icon 图片名称
 *  @param view 展示视图
 */
+ (void)show:(NSString *)text
        icon:(NSString *)icon
        view:(UIView *)view
  completion:(MBProgressHUDCompletionBlock)completion;
#pragma mark --------  提示有菊花  --------
#pragma mark
/**  < 只显示菊花 >  */
+ (MBProgressHUD *)showActivity;
/**  < 菊花带有文字 >  */
+ (MBProgressHUD *)showActivityMessage:(NSString *)message;
/** 显示文字 */
+ (void)showMessage:(NSString *)message;
/** 成功信息 */
+ (void)showSuccessMessage:(NSString *)success;
/** 错误信息 */
+ (void)showErrorMessage:(NSString *)error;
/** 警告信息 */
+ (void)showWarningMessage:(NSString *)warning;
/** 提示信息 */
+ (void)showInfoMessage:(NSString *)info;

#pragma mark --------  隐藏  --------
#pragma mark
+ (void)hideHUD;
+ (void)hideHUDForView:(UIView *)view;
@end
